package com.swift.violent.mainstay.config.annotation;

import com.swift.violent.mainstay.common.constants.Global;
import com.swift.violent.mainstay.security.config.ApplicationConfig;
import com.swift.violent.mainstay.security.feign.FeignAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 诺依安全功能注解
 *
 * @author ruoyi
 */
@SuppressWarnings("unused")
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({ApplicationConfig.class, FeignAutoConfiguration.class})
public @interface EnableRySecurityFunctionConfig {
    /**
     * 确认激活诺依权限
     *
     * @return boolean
     */
    String activation() default Global.NUM_1;
}